import React, { useContext } from 'react'
// 3. 导入context
import context from '../context'
export default function Son() {
    // 4. 使用useContext解析数据
    // const data = useContext(context)
    // console.log('data: ', data);
    let {username} = useContext(context)
    return (
        <div>
            <h5>Son</h5>
            <p>username: {username}</p>
        </div>
    )
}
